#ifndef __MEBSP_IBUS_H
#define __MEBSP_IBUS_H 			   
  
#include "at32f403a_407.h"
#include <stdint.h>

#define MB_IBUS_RSHUNT (0.04f)
#define MB_IBUS_AMPGAIN (5.0f)

typedef struct
{

  uint8_t bGetOffsetOKFlag;
  int16_t wOffsetVal;
  int32_t wOffsetSumVal;
  uint16_t wGetOffsetTimeCnt;

  float fMultipleAdVal;

  int16_t wCurrVal;
  
}_MB_IBUS_T;

extern _MB_IBUS_T MB_IBus;

extern void MeBsp_IBus_Init(void);
extern void MeBsp_IBus_GetOffsetVal(void);
extern void MeBsp_IBus_Hanl(void);
#endif





























